widget: Stop adding a legacy event controller
authorTimm Bäder <mail@baedert.org>
Mon, 8 Oct 2018 16:05:56 +0000 (18:05 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 11 Oct 2018 10:27:56 +0000 (12:27 +0200)
The only event signal left is ::event and everything needing that
connects to it directly.

gtk/gtkwidget.c

index 60c8239253bb1181d455e875490b5e1321f4f931..3044231eab2563ed9adaea9a545851a24ae35fce 100644 (file)
@@ -41,7 +41,6 @@
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsswidgetnodeprivate.h"
 #include "gtkdebug.h"
-#include "gtkeventcontrollerlegacyprivate.h"
 #include "gtkgesturedrag.h"
 #include "gtkgestureprivate.h"
 #include "gtkgesturesingle.h"
@@ -2878,8 +2877,6 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
   gtk_css_node_set_visible (priv->cssnode, priv->visible);
   /* need to set correct type here, and only class has the correct type here */
   gtk_css_node_set_widget_type (priv->cssnode, G_TYPE_FROM_CLASS (g_class));
-
-  gtk_widget_add_controller (widget, gtk_event_controller_legacy_new ());
 }